package com.chen.lifepic.downloader;

import com.chen.lifepic.DataInfo.DataInfo;
import com.chen.lifepic.utils.APPCommonDef.PictureType;

public class BaseTask implements IDownloadTask {
	protected ITaskListener _listener = null;

	protected DataInfo _info = null;

	public boolean success = false;

	protected PictureType _pictureType = PictureType.PictureTypeThumbnail;

	public BaseTask(DataInfo info, ITaskListener listener, PictureType type) {
		if (null == info)
			return;

		_info = info;
		_listener = listener;
		_pictureType = type;
	}

	public DataInfo getMediaInfo() {
		return _info;
	}

	public PictureType getPictureType() {
		return _pictureType;
	}

	@Override
	public void start() {

	}

	@Override
	public void cancel() {

	}

	@Override
	public void destroy() {
		_listener = null;
	}

}
